<?php
//*********************************** 
//Universal Media Publishing Platform
//Delete news script
//*********************************** 

require_once "config.php";
require_once "engine/login.php";
$login = $_COOKIE["login"];
$pass = $_COOKIE["pass"];
if ((isset($_GET["id"]))&&(check($login, $pass))&&($usrgroup==4)){
	$del = $_GET["id"];
	$query = "DELETE FROM news WHERE poid='$del'";
	$rsd = mysql_query($query);
}
header('Location: '.$_SERVER['HTTP_REFERER']);
?>
